package com.infonautics.dao;

import java.util.List;
import com.hibernate.Userinfo;
import com.hibernate.Unit;
import com.hibernate.Userrole;
import com.infonautics.page.PageBean;

public interface IUserinfoDao {

	public Userinfo doLogin(String username, String password) throws Exception;//登录查询用户
	public PageBean<Userinfo> doUserinfoList(int pageSize, int page)  throws Exception;//分页查询用户
	public PageBean<Userinfo> doUserinfoList(int pageSize, int page, String sql)  throws Exception;//分页查询用户
	public List<Unit> doUnitList() throws Exception;
	public List<Userrole> doUserroleList() throws Exception;
}
